#ifndef _APP_ADC_H
#define _APP_ADC_H

#include "sn_driver.h"
/**
 * 将温度设置为第一个
*/
#define ANALOG_FACTOR_NUM_TEMP       0

#define ANALOG_FACTOR_NUM_VIN        1 
#define ANALOG_FACTOR_NUM_VOUT       2
#define ANALOG_FACTOR_NUM_IOUT       3
#define ANALOG_FACTOR_NUM_PRECHARGE  4

extern struct vol_fator_t *vin_fator;
extern struct vol_fator_t *vout_fator;
extern struct vol_fator_t *iout_fator;
extern struct vol_fator_t *tmep_fator;
extern struct vol_fator_t *precharge_fator;

extern float VolVin        ;
extern float VolVout       ;
extern float VolIout       ;
extern float pre_VolIout   ;//前一次电流值
extern float VolTemp       ;
extern float VolPerCharge  ;



extern struct adc_dev_t *analog_device;//adc 
void app_adc_init(void);
void app_adc_loop_func(void);
void app_open_device_power(void);
#endif // !_APP_ADC_H


